package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Api(tags = "优惠卷")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatCouponFeign {

    /**
     * 领劵卷中心_领取优惠卷
     * @param couponId
     * @param provideCustId
     * @return
     */
    @ApiOperation("领劵卷中心_领取优惠卷")
    @PostMapping("/wechat/couponmgr/receivecoupon")
    String addProductBookMark(@RequestParam("couponId") Integer couponId,@RequestParam("provideCustId") Integer provideCustId);

    /**
     * 优惠卷_领卷中心
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("优惠卷_领卷中心")
    @PostMapping("/wechat/couponmgr/getcouponforapp")
    String getCouponForApp(@RequestParam("start") Integer start,@RequestParam("pageSize") Integer pageSize);

    /**
     * 优惠卷_我的优惠卷
     * @param
     * @param start
     * @param pageSize
     * @return
     */
    @ApiOperation("优惠卷_我的优惠卷")
    @PostMapping("/wechat/couponmgr/ajaxcouponreceivelistbybuyer")
    String ajaxCouponReceiveListByBuyer(@RequestParam("jsonObject") JSONObject jsonObject, @RequestParam("start") Integer start, @RequestParam("pageSize") Integer pageSize);


}
